package com.hinnotek.amoeba.adapters.old

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.bean.old.CompanyContractListBean

/**
 * 合同Adapter
 */
class ContractAdapter :
    BaseQuickAdapter<CompanyContractListBean, BaseViewHolder>(R.layout.item_contract) {
    override fun convert(holder: BaseViewHolder, item: CompanyContractListBean) {
        holder.setText(R.id.tv_item_contract_title, item.contractTypeName)
        holder.setText(R.id.tv_item_contract_unit, item.signUnit)
        holder.setText(R.id.tv_item_contract_num, item.contractNo)
        holder.setText(R.id.tv_item_contract_date, item.signDate)
        holder.setText(R.id.tv_item_contract_money, item.signMoney)
    }
}